package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.dto.SpuInfoqueryDto;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;
import com.atguigu.gulimall.product.vo.SpuInfoqueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * spu信息
 *
 * @author ct_start
 * @email Chen_Tao1023@126.com
 * @date 2021-09-12 12:28:14
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    void updateSpuStatus(@Param("spuId") long spuId, @Param("code") int code);

    List<SpuInfoqueryVo> queryspuInfo(@Param("spuInfoqueryDto") SpuInfoqueryDto spuInfoqueryDto);
}
